package nickthissen.iracing.common;

import nickthissen.iracing.datamodels.Result;
import android.content.Context;


/**
 * @author nthissen
 *
 * Abstract class used by Task to perform a data-loading operation in a background thread.
 *
 * @param <T> Type of input argument
 */
public abstract class DataLoader<T>
{
	private Context context;
	public Context getContext()
	{
		return context;
	}
	
	public void setContext(Context c)
	{
		context = c;
	}
	
	public abstract Result getData(T in);
	public abstract void onFinished(Result out);
}
